package com.ljtxxhwj.myblob.mapper;

import com.ljtxxhwj.myblob.entity.Chat;
import com.ljtxxhwj.myblob.entity.ChatRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChatMapper {

    public boolean insert(Chat chat);
    public Chat selectById(@Param("chatId") int chatId);
    public List<Chat> selectByUserId(@Param("userId") int userId);

    boolean insertChatRecord(ChatRecord chatRecord);

    List<ChatRecord> selectChatRecord(@Param("chatId") int chatId);
//    public List<Chat> selectSelective(Chat chat);
//
//    public boolean insertChatRecord(ChatRecord chatRecord);
//    public List<ChatRecord> selectChatRecordByChatId(int chatId);

}
